import request from '/@/utils/request';

/**
 * 
 * @param params 获取审批人信息
 * @returns 
 */
export const fetchApprover = (params: any) => {
    return request({ url: '/api/flow/task/approver', params })
}

/**
 * 
 * @param params 上传附件
 * @returns 
 */
export const uploadFile = (params: any) => {
    return request({ url: '/api/system/file/upload', method: 'post', data: params, headers: {'Content-Type': 'multipart/form-data'} })
}